﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Check.aspx.cs" Inherits="CMS_Admin_Check" %>

<%@ Register Src="../Control/RouterBar.ascx" TagName="RouterBar" TagPrefix="uc1" %>
<%@ Register Src="../Control/Version.ascx" TagName="Version" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <title>
        <asp:Literal ID="tt" runat="server"></asp:Literal></title>

    <script>
        document.oncontextmenu = new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应

        function IframeExist(url) {
            var isExistPage = true;
            var pageUrl = url; //页面地址 
            var XmlHttp = null;
            if (window.XMLHttpRequest) {
                XmlHttp = new XMLHttpRequest();
            } else if (window.ActiveXObject) {
                XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
            } else {
                return;
            }

            XmlHttp.open("GET", pageUrl, false);
            try {
                XmlHttp.send();
                if (XmlHttp.status == 200) {
                    isExistPage = true;
                } else {
                    isExistPage = false;
                }
            } catch (error) {
                isExistPage = false;
            }

            if (isExistPage) {
                document.getElementById('Iframe').style.display = "block";
            }
            else {
                document.getElementById('Iframe').style.display = "none";
            }
        }
    </script>

    <style>
        .btn
        {
            border-right: #7b9ebd 1px solid;
            padding-right: 2px;
            border-top: #7b9ebd 1px solid;
            padding-left: 2px;
            font-size: 12px;
            filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#cecfde);
            border-left: #7b9ebd 1px solid;
            cursor: hand;
            color: black;
            padding-top: 2px;
            border-bottom: #7b9ebd 1px solid;
            width: 100px;
        }
    </style>
</head>
<body onload="this.resizeTo(900,800)">
    <form id="form1" runat="server">
    <div style="width: 100%;" runat="server" id="ContentDiv">
        <uc1:RouterBar ID="RouterBar1" runat="server" />
        <asp:Literal ID="router" runat="server"></asp:Literal>
        <div id="Title" style="border-bottom: 1px #000 solid; width: 100%; text-align: center;
            font-size: 25px; font-weight: bold; height: 35px; margin-top: 20px;">
            <div style="width: 100%;">
                <div style="text-align: center">
                    <asp:Literal ID="lblTname" runat="server" Text=""></asp:Literal></div>
            </div>
        </div>
        <div style="font-size: 12px; margin-top: 5px; color: #999; line-height: 30px; text-align: left;">
            <span>
                <asp:Label ID="writer" runat="server" Text=""></asp:Label>
                <asp:Label ID="hits" runat="server" Text=""></asp:Label>
                <asp:Label ID="modfiytime" runat="server" Text=""></asp:Label>
                <asp:Label ID="modfiy" runat="server" Text=""></asp:Label>
                <asp:Label ID="version" runat="server" Text=""></asp:Label>
                <span style="font-size: 13px;" runat="server" id="artkey"></span></span></span>
        </div>
        <div style="font-size: 12px; margin-top: 5px; color: #999;">
            <uc2:Version ID="Version1" runat="server" />
        </div>
        <br />
        <br />
        <div style="text-align: center; width: 100%;" id="sum" runat="server">
            <div style="border: 1px solid #000; background-color: #FFFF99; padding: 10px; font-size: 13px;
                text-align: left;" runat="server" id="sumcontent">
            </div>
            <br />
        </div>
        <br />
        <div runat="server" id="FileContent" style="width: 100%; overflow: hidden; min-height: 500px;
            height: auto !important; height: 500px; overflow: visible;">
        </div>
        <div runat="server" id="Plus" style="width: 100%; overflow: hidden; min-height: 500px;
            height: auto !important; height: 500px; overflow: visible;">
            <asp:Panel ID="pn" runat="server">
            </asp:Panel>
        </div>
        <div>
            <asp:LinkButton ID="lbtnRv" runat="server">查看评论</asp:LinkButton>
        </div>
        <div style="text-align: center; width: 100%; margin-top: 30px;" runat="server" id="RedUrl">
            <asp:Button ID="Save" runat="server" Text=" 审核通过 " OnClick="Save_Click" CssClass="btn"
                OnClientClick="return confirm('确认执行？')" />
            &nbsp;<asp:Button ID="Button1" runat="server" Text=" 忽略此内容(放入回收站) " CssClass="btn"
                Width="150px" OnClick="Button1_Click" OnClientClick="return confirm('确认执行？')" />
            &nbsp;
            <asp:Button ID="go_to_edit" runat="server" Text=" 编辑此内容 " CssClass="btn" Width="150px"
                OnClientClick="return confirm('跳转到编辑页面...\r编辑成功后该内容重新进入审核流程，确认执行？')" OnClick="go_to_edit_Click" />
        </div>
    </div>
    </form>
</body>
</html>
